package org.plex.attachement.imp;

import java.io.Serializable;
import java.util.Date;

import org.plex.attachement.AttachmentInfo;

import com.adobe.idp.taskmanager.dsc.client.task.UnknownValueException;

public class AttachmentInfoImp implements AttachmentInfo,Serializable {
   
	private static final long serialVersionUID = -8085676550762792006L;
	private com.adobe.idp.taskmanager.dsc.client.task.AttachmentInfo attachmentInfo;
    
    
    public AttachmentInfoImp(com.adobe.idp.taskmanager.dsc.client.task.AttachmentInfo attachmentInfo)throws NullPointerException
    {
    	if(null==attachmentInfo)
    	{
    		throw new NullPointerException();
    	}
    	this.setAttachmentInfo(attachmentInfo);
    }
    
	
	public Date getCreateDate() {
	
		return this.attachmentInfo.getCreateDate();
	}

	public String getCreatorCommonName() throws UnknownValueException {
		// TODO Auto-generated method stub
		return this.attachmentInfo.getCreatorCommonName();
	}

	public String getCreatorId() throws UnknownValueException {
		
		return this.attachmentInfo.getCreatorId();
	}

	public String getDescription() throws UnknownValueException {
		// TODO Auto-generated method stub
		return this.attachmentInfo.getDescription();
	}

	public String getFileName() throws UnknownValueException {
		// TODO Auto-generated method stub
		return this.attachmentInfo.getFileName();
	}

	public long getId() throws UnknownValueException {
		// TODO Auto-generated method stub
		return this.attachmentInfo.getId();
	}

	public Date getLastModifiedDate() throws UnknownValueException {
		// TODO Auto-generated method stub
		return this.attachmentInfo.getLastModifiedDate();
	}

	public int getPermissions() throws UnknownValueException {
		// TODO Auto-generated method stub
		return this.attachmentInfo.getPermissions();
	}

	public long getSize() throws UnknownValueException {
		// TODO Auto-generated method stub
		return this.attachmentInfo.getSize();
	}

	public String getType() {
		// TODO Auto-generated method stub
		return this.attachmentInfo.getType();
	}

	public boolean isDeleteable() throws UnknownValueException {
		// TODO Auto-generated method stub
		return this.attachmentInfo.isDeleteable();
	}

	public boolean isNoteExtended() {
		// TODO Auto-generated method stub
		return this.attachmentInfo.isNoteExtended();
	}

	public boolean isReadable() throws UnknownValueException {
		// TODO Auto-generated method stub
		return this.attachmentInfo.isReadable();
	}

	public boolean isWriteable() throws UnknownValueException {
		// TODO Auto-generated method stub
		return this.attachmentInfo.isWriteable();
	}

	public void setDescription(String desciption) throws UnknownValueException {
		// TODO Auto-generated method stub
        this.attachmentInfo.setDescription(desciption);
	}

	public void setFileName(String fileName) {
		// TODO Auto-generated method stub
       this.attachmentInfo.setFileName(fileName);
	}

	public void setId(long id) {
		// TODO Auto-generated method stub
   this.attachmentInfo.setId(id);
	}

	public void setPermissions(int permissions) {
		// TODO Auto-generated method stub
      this.attachmentInfo.setPermissions(permissions);
	}

	public void setType(String type) throws UnknownValueException {
		// TODO Auto-generated method stub
		this.attachmentInfo.setType(type);

	}


	public void setAttachmentInfo(com.adobe.idp.taskmanager.dsc.client.task.AttachmentInfo attachmentInfo) {
		this.attachmentInfo = attachmentInfo;
	}


	public com.adobe.idp.taskmanager.dsc.client.task.AttachmentInfo getAttachmentInfo() {
		return attachmentInfo;
	}

}
